package com.xp.code.servicesImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xp.code.dao.IExampleDao;
import com.xp.code.services.IExampleService;

/**
 * 
 * @author HAHA
 * 
 */
@Service
@Scope("prototype")
@Transactional(rollbackFor = java.lang.Exception.class)
public class ExampleService implements IExampleService {
//	private static Logger log = Logger.getLogger(ExampleService.class);
	@Resource(name = "exampleDao")
	private IExampleDao exampleDao;

	public IExampleDao getExampleDao() {
		return exampleDao;
	}

	public void setExampleDao(IExampleDao exampleDao) {
		this.exampleDao = exampleDao;
	}

	/**
	 * 
	 */
	public List<Object[]> getInfo() {
		return exampleDao.getInfo();
	}
}
